/*
 * @Author: your name
 * @Date: 2020-04-01 17:48:05
 * @LastEditTime: 2020-05-29 11:19:11
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \bamaweb\vue.config.js
 */
module.exports = {
  transpileDependencies: [
    'vue-echarts',
    'resize-detector'
  ],
  publicPath: './',
  devServer: {
    proxy: {
      '/v1': {
        target: 'http://192.168.31.166:8899', // http://47.105.207.235   http://192.168.31.66:8899 巴马： pc.hdyhlz.com   乐当猫：http://192.168.31.67:11001
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          '^/v1': '/v1'
        }
      },
      '/v2': {
        target: 'http://192.168.31.166:8899', // http://47.105.207.235   乐当猫：http://192.168.31.67:11001
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          '^/v2': '/v2'
        }
      }
    }
  }
}
